using System;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Csnid.Web.UI.WebControls.TreeListView
{
    [PersistChildren(false), DefaultProperty("Text"), ToolboxData("<{0}:TreeListNode runat=server></{0}:TreeListNode>"), ToolboxItem(false), ParseChildren(false)]
    public class TreeListItem : Control, IDataItemContainer, INamingContainer
    {
        // Fields
        private object dataItem;
        private int m_DataItemIndex;
        private int m_DisplayIndex;

        // Methods
        public TreeListItem()
        {
        }

        public TreeListItem(int itemIndex)
        {
            this.m_DataItemIndex = this.m_DisplayIndex = itemIndex;
        }

        // Properties
        public object DataItem
        {
            get
            {
                return this.dataItem;
            }
            set
            {
                this.dataItem = value;
            }
        }

        public int DataItemIndex
        {
            get
            {
                return this.m_DataItemIndex;
            }
        }

        public int DisplayIndex
        {
            get
            {
                return this.m_DisplayIndex;
            }
        }
    }
}